﻿using System.Collections.Generic;
using Freshbooks.XmlSerializers;

namespace Freshbooks.Model
{
    [FreshbooksSerialization(Name = "gateways")]
    public class Gateway
    {
        private List<GatewayItem> items { get; set; }

        [FreshbooksSerialization(Name = "gateway")]
        public class GatewayItem
        {
            [FreshbooksSerialization(Name = "name")]
            public string Name { get; set; }

            [FreshbooksSerialization(Name = "autobill_capable")]
            public bool Autobill { get; set; }
        }
    }
}
